package com.wanshi.test;

public class A1 {

    //153、370、371、407

    public void shuixianhua(){
        System.out.println(153);
        System.out.println(370);
        System.out.println(371);
        System.out.println(407);
    }


    private static String lineSeparator = System.getProperty("line.separator", "\n");

    public static String fenjie(int num){
        StringBuffer buffer = new StringBuffer();
        for(int x = 2;x<=num;x++){
            if(num % x == 0){
                buffer.append(x+""+lineSeparator);
                num = num / x;
                x=1;
            }
        }
        return buffer.toString();
    }


    public static void main(String[] args) {

        System.out.println(fenjie(90));

    }
}
